package com.xiguthings.waka.web.controller.notlogin;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

@Controller
@RequestMapping("/not")
public class NotLogin {
    @RequestMapping("/login")
    public ModelAndView notLogin(HttpServletRequest request, HttpServletResponse response) {
        try {
            response.sendError(401, null);
        } catch (IOException e) {
            e.printStackTrace();
        }
        return null;
    }
}
